package com.solution.admin.customer.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.customer.entity.MarketLevelEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 市场等级配置DAO接口
 * @author solin
 * @date 2017-09-16 23:52:38
 */
public interface MarketLevelDao extends BaseDao<MarketLevelEntity> {
	
	/**
	 * 保存市场等级配置
	 * @param ebMarketLevelEntity
	 * @return
	 * @author solin
	 * @date 2017-09-16 23:52:38
	 */
	public long saveEbMarketLevel(MarketLevelEntity ebMarketLevelEntity);

	/**
	 * 分页查询市场等级配置信息
	 * @param pageParam 分页对象
	 * @param ebMarketLevel 分页参数
	 * @return PageBean 分页参数及数据
	 * @author solin
	 * @date 2017-09-16 23:52:38
	 */
	public PageBean listEbMarketLevelPage(PageParam pageParam, Map<String, Object> param);

	/**
	 * 更新市场等级配置
	 * @param ebMarketLevelEntity
	 * @return
	 * @author solin
	 * @date 2017-09-16 23:52:38
	 */
	public int updateEbMarketLevel(MarketLevelEntity ebMarketLevelEntity);


	/**
	 * 删除市场等级配置角色
	 * @param id
	 * @return
	 * @author solin
	 * @date 2017-09-16 23:52:38
	 */
	public int deleteEbMarketLevelById(Long id);
	
	/**
	 * 根据市场等级配置类型获取市场等级配置
	 * @param param
	 * @return
	 * @author solin
	 * @date 2017-09-16 23:52:38
	 */
	public List<MarketLevelEntity> listEbMarketLevel( Map<String, Object> param);
}
